#include "notifier.h"
#include "common/str.h"


namespace evm { namespace messaging {

void MessagingDriver::notify(Json&& msg, const string& priority, int retry) {
    for (const auto& topic: topics) {
        auto target = Target::notification_target(topic + "." + str::lower(priority));
        transport->send_notification(target, std::move(msg), retry);
    }
}

}}
